package cn.itcast.usermanage.pojo;

public class PageResult {

	private Integer status;

	private Object object;

	public PageResult(Integer status) {
		super();
		this.status = status;
	}

	public PageResult(Integer status, Object object) {
		super();
		this.status = status;
		this.object = object;
	}

	public static PageResult ok() {
		return new PageResult(200);
	}

	public static PageResult error() {
		return new PageResult(500);
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Object getObject() {
		return object;
	}

	public void setObject(Object object) {
		this.object = object;
	}

}
